package java9;

import java.util.Arrays;
import java.util.Scanner;

public class Q5_2 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int[] arr = new int[n];
		for (int i = 0; i < arr.length; i++) {
			try {
				arr[i] = Integer.parseInt(in.next());
			} catch (NumberFormatException ex) {
				System.out.println(ex);
				i--;
			}
		}
		System.out.println(Arrays.toString(arr));
		in.close();
	}

}